-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Workflow tests caching #62
Conversation
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## main #62 +/- ##
==========================================
+ Coverage 80.88% 82.75% +1.87%
==========================================
Files 27 27
Lines 1522 1577 +55
==========================================
+ Hits 1231 1305 +74
+ Misses 291 272 -19 ☔ View full report in Codecov by Sentry. |
30857f9
to
bbc2274
Compare
…es dict. simplify other fixtures
…ed to subprocess, and all subsequent steps already tested)
07f9c8a
to
f84be90
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks - this looks good to me.
I do think caching on GH actions is worth it, as the idea is for the CI tests to run fast (when on small data) and we expect quite a bit of activity on this repo in the immediate future - so it will make our lives easier and more in-flow!
It might also be worth mocking Path.home
only on local repos, and not on CI, so we run CI tests closer to a real-life scenario.
I'd suggest doing this in a separate PR tackling #65 though, as this is already a reduction in CI time.
We cache data in some of the other repos and it works very well. |
Fixes issue #34
if
case in parametrised testconfig_GIN_dict
fixture), then copied across for the rest of the test by mocking thepooch.retrieve
function.Rebase after #64 is squash-merged
Caching right now relies on the
pooch.retrieve()
function, which won't download the data if it already exists, and filename and hash match. We could instead / further reduce testing time in CI using Github's cache action